﻿// See https://aka.ms/new-console-template for more information
 
using Dapr.Client;
var client = new DaprClientBuilder().Build();
//默认grpc访问方式，端口50001
var secret = await client.GetSecretAsync("local-secret-store", "redisPassword");
if (secret.TryGetValue("redisPassword", out string? val))
{
    Console.WriteLine($"输出secret信息：{val}");
}
//Secret.yaml文件配置，其他存储位置
Console.ReadKey();
